/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package com.proyectos.model;

import java.io.Serializable;
import java.math.BigDecimal;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;

/**
 *
 * @author Rafael
 */
@Entity
@NamedQueries({
    @NamedQuery(name="Carreras.findByName",query="SELECT c FROM Carreras c WHERE upper(c.cnombre) like :cnombre"),
    @NamedQuery(name="Carreras.findAll", query="SELECT c FROM Carreras c")}) 
public class Carreras implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private BigDecimal ncodigo;
    @Column
    private String cnombre;
    @Column
    private String ccampus;

    public BigDecimal getNcodigo() {
        return ncodigo;
    }

    public void setNcodigo(BigDecimal ncodigo) {
        this.ncodigo = ncodigo;
    }

    public String getCnombre() {
        return cnombre;
    }

    public void setCnombre(String cnombre) {
        this.cnombre = cnombre;
    }

    public String getCcampus() {
        return ccampus;
    }

    public void setCcampus(String ccampus) {
        this.ccampus = ccampus;
    }
    

    
}
